package com.espirit.hr;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import com.espirit.eap.annotation.DomainModel;
import com.espirit.eap.manager.Department;
import com.espirit.eap.sa.Employee;

@Entity
@DomainModel
public class Salary implements Serializable{
	private static final long serialVersionUID = 408367123930104726L;

	private Integer id;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	@ManyToOne
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}

	@ManyToOne
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public BigDecimal getTotalPayAmount() {
		return totalPayAmount;
	}
	public void setTotalPayAmount(BigDecimal totalPayAmount) {
		this.totalPayAmount = totalPayAmount;
	}

	public BigDecimal getFinalPayingAmount() {
		return finalPayingAmount;
	}
	public void setFinalPayingAmount(BigDecimal finalPayingAmount) {
		this.finalPayingAmount = finalPayingAmount;
	}

	private Department department;
	private Employee employee;
	private BigDecimal totalPayAmount;  //应发工资
	private BigDecimal finalPayingAmount; //实发工资
	
}
